<%@include file="checkSession.jsp"%>

<%
            portlet.m_page.setPath("/AUM/");
            String idc = request.getParameter("IDC");
            if(m_user!=null && idc == null){
            Person persona = PersonMgr.mgr.getItem(m_user.id);
            String hola;
            if(m_user.estado.equals("1"))
                hola="Administrador";
            else
                hola="Trabajador";
            HtmlForm form = new HtmlForm("Form", "Bienvenido a AUM!", "_self", "index.jsp", "");
            form.addHidden("opc", "1");
            form.addSQText("Nombre:", "nombre", persona.nombre , "60");
            form.addSQText("Rol:", "rol", hola , "60");
            portlet.m_page.add(form);
            }
            else{
            portlet.m_page.add(new HtmlSimpleContent(idc));
            }
            if(m_user==null && idc == null){
            HtmlForm form = new HtmlForm("DataForm", "Ingreso al Sistema", "_self", "DoLogin.jsp", "");
            form.addSQText("Usuario: *", "uname", "", "30", true);
            form.addSQPassword("Clave: *", "passw", "", "30");
            portlet.m_page.add(form);
            }


%>

<%=portlet.m_page.getSource() %>